const baseUrl = "http://localhost:8080";

function checkLogin() {
  const token = localStorage.getItem("token");
  if (token == null) {
    window.location.href = "login.html";
  } else {
    return token;
  }
}
